home *** CD-ROM | disk | FTP | other *** search
/ Star Festival... a Return to Japan / Star Festival... a Return to Japan.iso / pc / STARFESTIVAL / 03r1.dir / 00001.ls next >
Encoding:
Text File  |  1999-07-22  |  2.1 KB  |  96 lines

  1. on startMovie
  2.   global gCursorReady
  3.   set the volume of sound 2 to 65
  4.   cursor(200)
  5.   sprite(46).visible = 0
  6.   puppetSprite(46, 1)
  7.   gCursorReady = 0
  8.   set the mouseDownScript to EMPTY
  9.   set the mouseUpScript to EMPTY
  10.   sprite(22).visible = 0
  11. end
  12.  
  13. on stopMovie
  14.   set the volume of sound 2 to 255
  15. end
  16.  
  17. on initmovies
  18.   nothing()
  19. end
  20.  
  21. on initRollover
  22.   if rollOver(14) then
  23.     sprite(15).visible = 1
  24.   else
  25.     sprite(15).visible = 0
  26.   end if
  27.   if rollOver(16) then
  28.     sprite(17).visible = 1
  29.   else
  30.     sprite(17).visible = 0
  31.   end if
  32.   if rollOver(18) then
  33.     sprite(19).visible = 1
  34.   else
  35.     sprite(19).visible = 0
  36.   end if
  37.   if rollOver(20) then
  38.     sprite(21).visible = 1
  39.   else
  40.     sprite(21).visible = 0
  41.   end if
  42. end
  43.  
  44. on checktheroll
  45.   repeat with i = 1 to 48
  46.     if rollOver(i) then
  47.       put i
  48.     end if
  49.   end repeat
  50. end
  51.  
  52. on idle
  53.   global gCursorReady
  54.   if gCursorReady = 1 then
  55.     cursor(200)
  56.     checkCursors()
  57.     set the locH of sprite 46 to the mouseH
  58.     set the locV of sprite 46 to the mouseV
  59.     updateStage()
  60.   end if
  61. end
  62.  
  63. on checkCursors
  64.   global gMagCursor
  65.   set the castNum of sprite 46 to the number of member "curs1"
  66.   if the castNum of sprite 23 and rollOver(23) then
  67.     set the castNum of sprite 46 to the number of member gMagCursor
  68.   end if
  69.   if rollOver(3) then
  70.     set the castNum of sprite 46 to the number of member "cursLeft"
  71.   end if
  72.   if rollOver(4) then
  73.     set the castNum of sprite 46 to the number of member "cursRight"
  74.   end if
  75.   if rollOver(5) then
  76.     set the castNum of sprite 46 to the number of member "cursDown"
  77.   end if
  78.   if rollOver(6) then
  79.     set the castNum of sprite 46 to the number of member "cursUp"
  80.   end if
  81.   if rollOver(10) then
  82.     set the castNum of sprite 46 to the number of member "hotCursor"
  83.   end if
  84.   repeat with i = 23 to 25
  85.     if the castNum of sprite i and rollOver(i) then
  86.       set the castNum of sprite 46 to the number of member "magCursor"
  87.     end if
  88.   end repeat
  89.   if the castNum of sprite 26 and rollOver(26) then
  90.     set the castNum of sprite 46 to the number of member "deMagCursor"
  91.   end if
  92.   if rollOver(27) then
  93.     set the castNum of sprite 46 to the number of member "hotCursor"
  94.   end if
  95. end
  96.